package org.ezplatform.office.questionnaire.entity;

import java.util.List;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseNativeEntity;

/**  
* @author 作者: wujs
* @version 创建时间：2017年11月22日 上午11:30:59 
* 类说明 ：问卷题目选项
*/
@MetaData(value = "问卷题目")
@Entity(name = "QuestionnaireTopicOptions")
@Table(name = "oa_questionnaire_topic_options", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class QuestionnaireTopicOptions  extends BaseNativeEntity{

	private static final long serialVersionUID = 7767175289660423453L;
	
	@MetaData(value = "题目ID")
  	@Column(name = "topic_id", nullable = false, length = 32)
    private String topicId;
	
	@MetaData(value = "选项名称")
  	@Column(name = "name", length = 20)
    private String name;
	
	@MetaData(value = "选项排序")
  	@Column(name = "option_order", length = 20)
    private int optionOrder;
	
	@MetaData(value = "选项设置")
  	@Column(name = "option_setting", length = 500)
    private String optionSetting;
	
	@Transient
	private Map<String,Object> mapSet;
	
	@Transient
	private Map<String,Object> mapProp;
	
	@Transient
	private List<Map<String,Object>> list;
	
	@Transient
	private QuestionnaireAnswer answer;
	
	@Transient
	private String letter;
	
	//该选项备选个数
	@Transient
	private int selectNum;

	//票数百分比
	@Transient
	private String ticketPercent;
	
	public String getTopicId() {
		return topicId;
	}

	public void setTopicId(String topicId) {
		this.topicId = topicId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getOptionOrder() {
		return optionOrder;
	}

	public void setOptionOrder(int optionOrder) {
		this.optionOrder = optionOrder;
	}

	public String getOptionSetting() {
		return optionSetting;
	}

	public void setOptionSetting(String optionSetting) {
		this.optionSetting = optionSetting;
	}

	public Map<String, Object> getMapSet() {
		return mapSet;
	}

	public void setMapSet(Map<String, Object> mapSet) {
		this.mapSet = mapSet;
	}

	public String getLetter() {
		return letter;
	}

	public void setLetter(String letter) {
		this.letter = letter;
	}

	public QuestionnaireAnswer getAnswer() {
		return answer;
	}

	public void setAnswer(QuestionnaireAnswer answer) {
		this.answer = answer;
	}

	public List<Map<String, Object>> getList() {
		return list;
	}

	public void setList(List<Map<String, Object>> list) {
		this.list = list;
	}

	public Map<String, Object> getMapProp() {
		return mapProp;
	}

	public void setMapProp(Map<String, Object> mapProp) {
		this.mapProp = mapProp;
	}

	public int getSelectNum() {
		return selectNum;
	}

	public void setSelectNum(int selectNum) {
		this.selectNum = selectNum;
	}

	public String getTicketPercent() {
		return ticketPercent;
	}

	public void setTicketPercent(String ticketPercent) {
		this.ticketPercent = ticketPercent;
	}

	
}
